<script type="text/javascript">
$(function(){
	var tabs = $('.tabs');
	tabs.mac('tabs', {
		items: [{
			code: 'tab1',
			title: 'Subject 1',
			closeable: true,
			url: '/mac/js/tabs/tab1.html',
			autoLoad: true
		},{
			code: 'tab2',
			title: 'Subject 2',
			closeable: true,
			url: '/mac/js/tabs/tab2.html',
			autoLoad: false
		}],
		onLoadPage: function(me, a, b, p){
			alert('onLoadPage: ' + p.code + ' be loaded.');
		},
		onCloseTab: function(me, c, a){
			alert(c + ' say: Oh, No, pls don\'t close me');
			return false;
		}
	}).selectFirst();
});
</script>
<div class="tabs" style="height: 410px; margin: 4px;"></div>